Android build of clean sample project fails during dependency resolution · Issue #38056 · facebook/react

您所在的位置:网站首页 no values available Android build of clean sample project fails during dependency resolution · Issue #38056 · facebook/react

Android build of clean sample project fails during dependency resolution · Issue #38056 · facebook/react

2024-03-28 05:46| 来源: 网络整理| 查看: 265

@cnixbtc yes please try to build with Java 11 and report back. I'm not aware of any incompatibilities between Java 17 and React Native 0.72, but this could be one.

I also got the same error but my java version is 11.

npx react-native doctor

Common ✓ Node.js - Required to execute JavaScript code ✓ yarn - Required to install NPM dependencies ✓ Watchman - Used for watching changes in the filesystem when in development mode

Android ✓ Adb - Required to verify if the android device is attached correctly ✓ JDK - Required to compile Java code ✓ Android Studio - Required for building and installing your app on Android ✓ Android SDK - Required for building and installing your app on Android ✓ ANDROID_HOME - Environment variable that points to your Android SDK installation

iOS ✓ Xcode - Required for building and installing your app on iOS ✓ Ruby - Required for installing iOS dependencies ✓ CocoaPods - Required for installing iOS dependencies ● ios-deploy - Required for installing your app on a physical device with the CLI ✖ .xcode.env - File to customize Xcode environment

npx react-native info info Fetching system and libraries information... System: OS: macOS 12.6 CPU: (8) arm64 Apple M1 Memory: 449.84 MB / 16.00 GB Shell: version: 5.8.1 path: /bin/zsh Binaries: Node: version: 16.17.1 path: /usr/local/bin/node Yarn: version: 1.22.19 path: /opt/homebrew/bin/yarn npm: version: 8.15.0 path: /usr/local/bin/npm Watchman: version: 2022.10.03.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.11.3 path: /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 22.2 - iOS 16.2 - macOS 13.1 - tvOS 16.1 - watchOS 9.1 Android SDK: API Levels: - "28" - "29" - "30" - "31" - "32" - "33" Build Tools: - 28.0.3 - 29.0.3 - 30.0.0 - 30.0.1 - 30.0.2 - 30.0.3 - 31.0.0 - 32.0.0 - 33.0.0 - 33.0.1 - 33.0.2 - 34.0.0 System Images: - android-29 | Intel x86 Atom_64 - android-30 | Intel x86 Atom_64 - android-31 | Intel x86 Atom_64 - android-33 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.10121639 Xcode: version: 14.2/14C18 path: /usr/bin/xcodebuild Languages: Java: version: 11.0.16.1 path: /usr/bin/javac Ruby: version: 2.7.6 path: /Users/jielong/.rbenv/shims/ruby npmPackages: "@react-native-community/cli": Not Found react: Not Found react-native: Not Found react-native-macos: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3